yew-macro 0.21.0

A framework for making client-side single-page apps
Documentation
This crate provides Yew's procedural macro `html!` which allows using JSX-like syntax for generating html and the `Properties` derive macro for deriving the `Properties` trait for components. ``` use yew::prelude::*; struct Component; #[derive(Properties, PartialEq)] struct Props { prop: String, } # enum Msg { Submit } # # impl yew::Component for Component { # type Message = Msg; # type Properties = Props; # fn create(_ctx: &Context) -> Self { # unimplemented!() # } # # # fn view(&self, ctx: &Context) -> Html { # // ... html! {
<>
} # # } # } # # fn main() {} ``` Please refer to [https://github.com/yewstack/yew](https://github.com/yewstack/yew) for how to set this up.